| API Documentation |  |

- MAIN PAGE
- NAMESPACES
- CLASSES

System.h
1 // System.h
3 //
5
6 namespace nkWinUi
7 {
17 class System final : public nkCommon::MaybeSingletonClass<System>
18 {
19 public :
20
21 // Constructor, destructor
29 System () noexcept ;
33 virtual ~System () ;
34
40 bool initialize () ;
46 bool createDefaultTheme () const ;
47
48 // Getters
53 WindowingSystem* getWindowingSystem () const ;
57 Clipboard* getClipboard () const ;
61 Notificator* getNotificator () const ;
68 ComponentManager* getComponentManager () const ;
75 CursorManager* getCursorManager () const ;
82 FontManager* getFontManager () const ;
89 ImageManager* getImageManager () const ;
96 InputSystem* getInputSystem () const ;
103 LogManager* getLogManager () const ;
110 ThemeManager* getThemeManager () const ;
114 std::function<bool ()> getRunCallback () const ;
118 bool isInitialized () const ;
122 runRoutine getRunCallback () const ;
123
124 // Setters
130 void setRunCallback (std::function<bool ()> callback) ;
131
135 void run () ;
140 void tick () ;
141
145 void prepareForShutdown () ;
149 void shutdown () ;
150
155 void notifyEvent () ;
156 } ;
157 }
nkWinUi::System::getWindowingSystem
WindowingSystem * getWindowingSystem() const
nkWinUi::System::run
void run()
nkWinUi::System::prepareForShutdown
void prepareForShutdown()
nkWinUi::Clipboard
Abstracts the system clipboard.
Definition: Clipboard.h:12
nkWinUi::System::getThemeManager
ThemeManager * getThemeManager() const
nkWinUi::System::isInitialized
bool isInitialized() const
nkWinUi::System::shutdown
void shutdown()
nkWinUi::System::getClipboard
Clipboard * getClipboard() const
nkWinUi::System::getInputSystem
InputSystem * getInputSystem() const
nkWinUi::System::getRunCallback
std::function< bool()> getRunCallback() const
nkWinUi::System::setRunCallback
void setRunCallback(std::function< bool()> callback)
nkWinUi::System::getCursorManager
CursorManager * getCursorManager() const
nkWinUi::System::getFontManager
FontManager * getFontManager() const
nkWinUi::System::getNotificator
Notificator * getNotificator() const
nkWinUi::FontManager
Manages the recorded fonts [WIP].
Definition: FontManager.h:14
nkWinUi::System
The main system of the component.
Definition: System.h:18
nkWinUi::InputSystem
Input system, centralizing default behaviour for the input.
Definition: InputSystem.h:12
nkWinUi::System::getComponentManager
ComponentManager * getComponentManager() const
nkWinUi::System::System
System() noexcept
nkWinUi::ImageManager
Manages the images in the component.
Definition: ImageManager.h:12
nkWinUi::CursorManager
Manages the recorded cursors living in the component.
Definition: CursorManager.h:12
nkWinUi::LogManager
Responsible for logging all messages from the component.
Definition: LogManager.h:14
nkWinUi::System::createDefaultTheme
bool createDefaultTheme() const
nkWinUi::Notificator
Gather notification and popup related functions.
Definition: Notificator.h:14
nkWinUi::System::tick
void tick()
nkWinUi::System::getImageManager
ImageManager * getImageManager() const
nkWinUi::System::initialize
bool initialize()
nkWinUi::WindowingSystem
Class abstracting the windowing system used.
Definition: WindowingSystem.h:28
nkWinUi::ComponentManager
Manages the components within nkWinUi.
Definition: ComponentManager.h:15
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition: Clipboard.h:7
nkWinUi::ThemeManager
Manages the themes within the component.
Definition: ThemeManager.h:14
nkWinUi::System::getLogManager
LogManager * getLogManager() const
nkWinUi::System::notifyEvent
void notifyEvent()